package com.zs.toolbox.web2j.system.core.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author shuai.zhang  on 2018/9/22
 * @description
 */
@ApiModel("修改密码请求")
@Data
public class WtChangePasswordTokenReqeust{

    @ApiModelProperty(value = "新密码", required = true)
    @NotBlank(message = "新密码不能为空")
    @Size(min = 6, max = 30, message = "密码应为6-30个字符")
    String newPassword;

    @ApiModelProperty(value = "手机号或邮箱",required = true, example = "15652750943")
    @NotBlank(message = "手机号或邮箱不能为空")
    String key;

    @ApiModelProperty(value = "验证码",required = true, example = "123")
    @NotBlank(message = "验证码不能为空")
    String vcode;

}
